
from qcloud_cos import CosS3Client
from qcloud_cos import CosConfig


secret_id = 'AKIDmIXtPx9OOL3UfaMWXSEl0zoMdCZgZR5T'      # 替换为用户的 secretId
secret_key = 'GFCuSjmaKo1xbS9ZibEjUjjS7Wf7JUVG'        # 替换为用户的 secretKey
region = 'ap-chengdu'     # 替换为用户的 Region，区域：中国成都，相当于ap-chengdu

config = CosConfig(Region=region, SecretId=secret_id, SecretKey=secret_key, )
# 2. 获取客户端对象
client = CosS3Client(config)

response = client.create_bucket(
    Bucket="fei-1304881545",
    ACL="public-read",  # private/ public-read/ public-read-write

)



